﻿using ErrorOr;
using Gym.Domain.Common;
using Gym.Domain.Common.EventualConsistency;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Gym.Domain.SessionAggregate.Events
{
    public record SessionCanceledEvent(Session Session) : IDomainEvent
    {
        public static readonly Error TrainerNotFound = EventualConsistencyError.From(
        code: "SessionCanceledEvent.TrainerNotFound",
        description: "Trainer not found");

        public static readonly Error TrainerScheduleUpdateFailed = EventualConsistencyError.From(
            code: "SessionCanceledEvent.TrainerScheduleUpdateFailed",
            description: "从教练日程中删除课程失败");

        public static readonly Error ParticipantScheduleUpdateFailed = EventualConsistencyError.From(
            code: "SessionCanceledEvent.ParticipantScheduleUpdateFailed",
            description: "从学员日程中删除课程失败");
    }
}
